package com.examples.gateway.helper.utils;

import com.examples.gateway.common.CheckState;

/**
 * @author Dai YaLu
 */
public class CheckStateHelpUtils {

    /**
     * 是否跳过剩余的过滤器
     * @param state
     * @return
     */
    public static boolean isSkipLeft(CheckState state) {
        switch (state) {
            case SUCCESS_PERMISSION_DISABLED:
            case SUCCESS_SKIP_PATH:
            case SUCCESS_PUBLIC_ACCESS:
            case SUCCESS_LOGIN_ACCESS:
            case SUCCESS_ADMIN:
            case SUCCESS_DEVELOPER_ROUTE:
                return true;
            default:
                return false;
        }
    }

}
